<?php
require_once("../data/common.inc.php");
$char="utf8";
$link=mysqli_connect('127.0.0.1', $cfg_dbuser, $cfg_dbpwd);
mysqli_select_db($link,$cfg_dbname);
mysqli_set_charset($link,$char);
$sql_tab="show tables;";
$re_tab=mysqli_query($link,$sql_tab);
while($row=mysqli_fetch_row($re_tab)){
	$tabs[]=$row;
}
mysqli_free_result($re_tab);
echo "<pre>";
print_r($tabs);
echo "</pre>";
?>